import {defaultGlobalState, GlobalStateFace, UserInfo} from '../defaultState'
export default {
    namespaced: true,
    state: defaultGlobalState(),
    mutations: {
        SET_USERINFO (state: GlobalStateFace, data: UserInfo) {
            state.userInfo = data;
        }
    },
    getters: {
        GET_USERINFO (state: GlobalStateFace) {
            console.log(state.userInfo);
            return state.userInfo;
        }
    },
    actions: {}
}
